package com.iweb.project.Category.dao;

import com.iweb.project.Category.model.Category;
import com.iweb.project.util.PageModel;

import java.util.List;

public interface CategoryDao {

    //分页查询
    public List<Category> selectByPage(PageModel pageModel);

    //新增一条记录
    public int addOne(Category category);

    //修改一条记录
    public int updateOne(Category category);

    //根据ID查询一条记录
    public Category queryById(String cid);

    public int deleteById(String cid);
}
